package com.ant.backstage.dao;

import com.ant.backstage.facade.model.Goods;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
* Created by Mybatis Generator 2022/02/11
*/
@Component
public interface GoodsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Goods record);

    Goods selectByPrimaryKey(Integer id);

    List<Goods> selectAll();

    int updateByPrimaryKey(Goods record);

    List<Goods> selectByIds(@Param("goodsIds")List<Integer> goodsIds);

    void updateGoodsStock(@Param("goodsScn")String goodsScn, @Param("count")String count);

}